package com.example.comm.util;

import com.example.comm.Cache.DataCache;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;


/**
 * Created by Administrator on 2017/12/16.
 */
@Component
public class CacheUtils {

    private static DataCache dataCache;

    @Resource
    public void setDataCache(DataCache dataCache) {
        System.out.println("=============================");
    	CacheUtils.dataCache = dataCache;
    }

    public static DataCache getCacheInstance() {
    	return dataCache;
    }
}
